package com.by.bean;

import com.by.common.group.ISave;
import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("客户信息")
@AllArgsConstructor
@NoArgsConstructor
public class Customer {
    @ApiModelProperty("客户id")
    @NotEmpty(message = "id不能为空",groups = {IUpdate.class})
    int id;

    @ApiModelProperty(value = "所属销售",required = true)
    int saleId;

    @ApiModelProperty(value = "客户手机号")
    String mobile;

    @ApiModelProperty("市场")
    int market;

    @ApiModelProperty("国家")
    String country;

    @ApiModelProperty("客户公司名称")
    String companyName;

    @ApiModelProperty("机型")
    String model;

    @ApiModelProperty("成交或询价产品")
    String submitPro;

    @ApiModelProperty("感兴趣的产品")
    String interestedPro;

    @NotEmpty(message = "名称不能为空",groups = {ISave.class, IUpdate.class})
    @ApiModelProperty("客户联系人")
    String contactName;

    @ApiModelProperty("客户联系手机")
    String contactMobile;

    @ApiModelProperty("客户邮箱")
    String contactEmail;

    @ApiModelProperty("老板联系人")
    String employerName;

    @ApiModelProperty("老板联系手机")
    String employerMobile;

    @ApiModelProperty("老板邮箱")
    String employerEmail;

    @ApiModelProperty("联系地址")
    String contactAddress;

    @ApiModelProperty("客户目的港口")
    String port;

    @ApiModelProperty("客户分类")
    int segmentation;

    @ApiModelProperty("客户类型")
    int category;

    @ApiModelProperty("客户来源")
    int source;

    @ApiModelProperty("公司简介")
    String companyProfile;

    @ApiModelProperty("客户目的地")
    String destination;

    @ApiModelProperty("目的地和快递地是否一致")
    int consistent;

    @ApiModelProperty("快递地址")
    String courierAddress;

    @ApiModelProperty("是否删除")
    int isdel;

    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空！", groups = {ISave.class})
    String account;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空！", groups = {ISave.class})
    String password;

}
